package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 采购订单明细财务信息对象 erp_order_finance_detail_info
 *
 * @author cxl
 * @date 2024-06-23
 */
@TableName ("erp_order_finance_detail_info")
@ApiModel (value = "采购订单明细财务信息", description = "采购订单明细财务信息")
@Data
public class OrderFinanceDetailEntity{

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 采购订单id */
        @ApiModelProperty ("采购订单id")
        @TableField ("order_id")
        @Excel (name = "采购订单id")
        private String orderId;

        /** 物料id */
        @ApiModelProperty ("物料id")
        @TableField ("material_id")
        @Excel (name = "物料id")
        private String materialId;

        /** 物料编码 */
        @ApiModelProperty ("物料编码")
        @TableField ("material_code")
        @Excel (name = "物料编码")
        private String materialCode;

        /** 物料名称 */
        @ApiModelProperty ("物料名称")
        @TableField ("material_name")
        @Excel (name = "物料名称")
        private String materialName;

        /** 结算组织 */
        @ApiModelProperty ("结算组织")
        @TableField ("settlement_dept")
        @Excel (name = "结算组织")
        private String settlementDept;

        /** 折扣率 */
        @ApiModelProperty ("折扣率")
        @TableField ("discount_rate")
        @Excel (name = "折扣率")
        private String discountRate;

        /** 税率 */
        @ApiModelProperty ("税率")
        @TableField ("tax_rate")
        @Excel (name = "税率")
        private String taxRate;

        /** 单价折扣 */
        @ApiModelProperty ("单价折扣")
        @TableField ("unit_price_discount")
        @Excel (name = "单价折扣")
        private String unitPriceDiscount;

        /** 折扣额 */
        @ApiModelProperty ("折扣额")
        @TableField ("discount_amount")
        @Excel (name = "折扣额")
        private String discountAmount;

        /** 净价 */
        @ApiModelProperty ("净价")
        @TableField ("net_price")
        @Excel (name = "净价")
        private String netPrice;

        /** 分录价目表 */
        @ApiModelProperty ("分录价目表")
        @TableField ("entry_price_info")
        @Excel (name = "分录价目表")
        private String entryPriceInfo;

        /** 价格系数 */
        @ApiModelProperty ("价格系数")
        @TableField ("price_coefficient")
        @Excel (name = "价格系数")
        private String priceCoefficient;

        /** 计价单位 */
        @ApiModelProperty ("计价单位")
        @TableField ("pricing_unit")
        @Excel (name = "计价单位")
        private String pricingUnit;

        /** 计价数量 */
        @ApiModelProperty ("计价数量")
        @TableField ("pricing_num")
        @Excel (name = "计价数量")
        private String pricingNum;

        /** 系统定价 */
        @ApiModelProperty ("系统定价")
        @TableField ("system_pricing")
        @Excel (name = "系统定价")
        private String systemPricing;

        /** 价格上限 */
        @ApiModelProperty ("价格上限")
        @TableField ("price_ceiling")
        @Excel (name = "价格上限")
        private String priceCeiling;

        /** 价格下限 */
        @ApiModelProperty ("价格下限")
        @TableField ("price_floor")
        @Excel (name = "价格下限")
        private String priceFloor;

        /** 创建人 */
        @ApiModelProperty ("创建人")
        @TableField ("user_id")
        @Excel (name = "创建人")
        private String userId;

        @ApiModelProperty ("创建时间")
        @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
        @TableField ("create_time")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date changeTime;

        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;


}
